﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MiserBlogData.Entities
{
    public class Comment : A_Data
    {
        //public virtual int ArticleId { get; set; }
        public virtual Article Article { get; set; }

        public Comment()
            : base()
        {
            
        }
        
        public override System.Collections.Generic.IList<T> GetList<T>()
        {
            MiserDB.DataHelp.QueryHelper d = new MiserDB.DataHelp.CommentHelp();
            return d.GetList<T>(this.Article.Id);
        }
    }
}
